Adequacy for Algebraic Effects
نویسندگان
چکیده
Moggi proposed a monadic account of computational effects. He also presented the computational λ-calculus, λc, a core call-by-value functional programming language for effects; the effects are obtained by adding appropriate operations. The question arises as to whether one can give a corresponding treatment of operational semantics. We do this in the case of algebraic effects where the operations are given by a single-sorted algebraic signature, and their semantics is supported by the monad, in a certain sense. We consider call-by-value PCF with— and without—recursion, an extension of λc with arithmetic. We prove general adequacy theorems, and illustrate these with two examples: nondeterminism and probabilistic nondeterminism.
منابع مشابه
Semantics for Algebraic Operations
Given a complete and cocomplete symmetric monoidal closed category V and a symmetric monoidal V -category C with cotensors and a strong V -monad T on C, we investigate axioms under which an ObCindexed family of operations of the form αx : (Tx) v −→ (Tx)w provides semantics for algebraic operations, which may be used to extend the usual monadic semantics of the computational λ-calculus uniformly...
متن کاملAlgebraic Operations and Generic Effects
Given a complete and cocomplete symmetric monoidal closed category V and a symmetric monoidal V-category C with cotensors and a strong V-monad T on C, we investigate axioms under which an ObCindexed family of operations of the form αx : (Tx) v −→ (Tx)w provides semantics for algebraic operations on the computational λ-calculus. We recall a definition for which we have elsewhere given adequacy r...
متن کاملTowards Automation for Pointer Algebra
First-order automated verification within algebraic structures has proven to be widely applicable. In this work we deal with automation for pointer algebra. We evaluate the adequacy of its original axioms for theorem proving tools. Moreover we give a different algebraic approach for projections which turns out to be more suitable for automation.
متن کاملOn the Power of Higher-Order Algebraic Specification Methods
Soundness and adequacy theorems are presented for the expressive power of higher-order initial algebra specifications with respect to the arithmetical and analytical hierarchies. These results demonstrate that higher-order initial algebra semantics substantially extends the power of both first-order initial and first-order final algebra semantics. It thus provides a unifying framework for all t...
متن کاملImpact of Jacobson Relaxation on Dialysis Adequacy in ElderlyHemodialysis Patients
Background: Dialysis adequacy is one of the determining factors for survival in elderly patients. Improving the dialysis adequacy highly affects the remission and prognosis of old dialysis patients. Current study was conducted to evaluate the effects of Jacobson relaxation technique on dialysis adequacy in elderly people, who are under dialysis treatment. Methods: ods: This is a clinical trial...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2001